package Concurrency2.Chapter02_InnerLockPrinciple.P00_ObjectStructViewer;

import org.openjdk.jol.info.ClassLayout;

/**
 * 输入对象结构
 */
public class ObjectViewer {
    private Integer someInt = 10;
    public void printObject() {
        String objectViewer = ClassLayout.parseInstance(this).toPrintable();
        System.out.println(objectViewer);
    }

    public static void main(String[] args) {
        ObjectViewer viewer = new ObjectViewer();
        viewer.printObject();
    }
}
